package bean;

import java.io.Serializable;

/**
 * food
 * @author 
 */
public class Food implements Serializable {
    private Integer foodid;

    private Integer hosterid;

    private String foodtitle;

    private Integer foodprice;

    private Integer foodjoinernum;

    private String foodtime;

    private String foodaddress;

    private String foodintroduction;

    private Integer interest;

    private String b;

    private String c;

    private static final long serialVersionUID = 1L;

    public Integer getFoodid() {
        return foodid;
    }

    public void setFoodid(Integer foodid) {
        this.foodid = foodid;
    }

    public Integer getHosterid() {
        return hosterid;
    }

    public void setHosterid(Integer hosterid) {
        this.hosterid = hosterid;
    }

    public String getFoodtitle() {
        return foodtitle;
    }

    public void setFoodtitle(String foodtitle) {
        this.foodtitle = foodtitle;
    }

    public Integer getFoodprice() {
        return foodprice;
    }

    public void setFoodprice(Integer foodprice) {
        this.foodprice = foodprice;
    }

    public Integer getFoodjoinernum() {
        return foodjoinernum;
    }

    public void setFoodjoinernum(Integer foodjoinernum) {
        this.foodjoinernum = foodjoinernum;
    }

    public String getFoodtime() {
        return foodtime;
    }

    public void setFoodtime(String foodtime) {
        this.foodtime = foodtime;
    }

    public String getFoodaddress() {
        return foodaddress;
    }

    public void setFoodaddress(String foodaddress) {
        this.foodaddress = foodaddress;
    }

    public String getFoodintroduction() {
        return foodintroduction;
    }

    public void setFoodintroduction(String foodintroduction) {
        this.foodintroduction = foodintroduction;
    }

    public Integer getInterest() {
        return interest;
    }

    public void setInterst(Integer interest) {
        this.interest= interest;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    public String getC() {
        return c;
    }

    public void setC(String c) {
        this.c = c;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Food other = (Food) that;
        return (this.getFoodid() == null ? other.getFoodid() == null : this.getFoodid().equals(other.getFoodid()))
            && (this.getHosterid() == null ? other.getHosterid() == null : this.getHosterid().equals(other.getHosterid()))
            && (this.getFoodtitle() == null ? other.getFoodtitle() == null : this.getFoodtitle().equals(other.getFoodtitle()))
            && (this.getFoodprice() == null ? other.getFoodprice() == null : this.getFoodprice().equals(other.getFoodprice()))
            && (this.getFoodjoinernum() == null ? other.getFoodjoinernum() == null : this.getFoodjoinernum().equals(other.getFoodjoinernum()))
            && (this.getFoodtime() == null ? other.getFoodtime() == null : this.getFoodtime().equals(other.getFoodtime()))
            && (this.getFoodaddress() == null ? other.getFoodaddress() == null : this.getFoodaddress().equals(other.getFoodaddress()))
            && (this.getFoodintroduction() == null ? other.getFoodintroduction() == null : this.getFoodintroduction().equals(other.getFoodintroduction()))
            && (this.getInterest() == null ? other.getInterest() == null : this.getInterest().equals(other.getInterest()))
            && (this.getB() == null ? other.getB() == null : this.getB().equals(other.getB()))
            && (this.getC() == null ? other.getC() == null : this.getC().equals(other.getC()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFoodid() == null) ? 0 : getFoodid().hashCode());
        result = prime * result + ((getHosterid() == null) ? 0 : getHosterid().hashCode());
        result = prime * result + ((getFoodtitle() == null) ? 0 : getFoodtitle().hashCode());
        result = prime * result + ((getFoodprice() == null) ? 0 : getFoodprice().hashCode());
        result = prime * result + ((getFoodjoinernum() == null) ? 0 : getFoodjoinernum().hashCode());
        result = prime * result + ((getFoodtime() == null) ? 0 : getFoodtime().hashCode());
        result = prime * result + ((getFoodaddress() == null) ? 0 : getFoodaddress().hashCode());
        result = prime * result + ((getFoodintroduction() == null) ? 0 : getFoodintroduction().hashCode());
        result = prime * result + ((getInterest() == null) ? 0 : getInterest().hashCode());
        result = prime * result + ((getB() == null) ? 0 : getB().hashCode());
        result = prime * result + ((getC() == null) ? 0 : getC().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", foodid=").append(foodid);
        sb.append(", hosterid=").append(hosterid);
        sb.append(", foodtitle=").append(foodtitle);
        sb.append(", foodprice=").append(foodprice);
        sb.append(", foodjoinernum=").append(foodjoinernum);
        sb.append(", foodtime=").append(foodtime);
        sb.append(", foodaddress=").append(foodaddress);
        sb.append(", foodintroduction=").append(foodintroduction);
        sb.append(", interest=").append(interest);
        sb.append(", b=").append(b);
        sb.append(", c=").append(c);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}